import galaxy


class Order(object):
	"""Basic "single order" class, it's dummy!"""
	def __init__(self):
		"""init have many args: it s args for order!"""
		pass

	def __get_as_string(self):
		"""get order as string"""
		pass:
	def __set_as_string(self):
		"""set order as string"""
		pass:

	as_string = property(__get_as_string, __set_as_string)

	def is_correct(self):
		"""if it order is correct, return true, else - return false"""
		return false


class Send_Ship_Anywhere(Order):
	"""Simple example of Order"""
	def __init__(self, group, planet)
		"""group must be Group, planet must be Planet"""
		self.from_planet=blabla
		self.to_planet=blabla
		self.group = group

	def __get_as_string(self):
		return "bla" + "bla"

	def is_correct(self):
		if (self.group bla bla can fly to self.to_planet):
			return true


class Orders(list):
	"""List of all orders"""
	def add_order(self, order_class, arg1="", arg2="", arg3="", \
			arg4="", arg5="", arg6="", arg7="", arg8="", arg9="", \
			arg10="", arg11="", arg12="", arg13="",)
		"""if order is correct, we append it to own orders"""
		"""fixme!!!!"""
		#neword = eval(order_name + "(" + arg1 + "," + arg2 +  ")" )
		neword = order_class(arg1, arg2 ...)
		if (neword.is_correct()):
			self.append(neword)
			return true
		else:
			return false
		
"""usage:"""


myorders = order.Orders()
if (myorders.add_order(order.Send_Ship_Anywhere, mygroup, myplanet)):
	#paint arrow



